#!/usr/bin/python
# -*- coding: utf-8 -*-

class Plugin():
    def name(self):
	return "samba"
    def check(self):
        p = Popen(["smbstatus","-L"],stdout=PIPE)
        p.wait()
        
        if p.stdout.read().find("No locked files") == -1:
            return "someone connected through samba"
